package com.ruoyi.project.bajiaostar.user;

import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.bajiaostar.tBanner.domain.TBanner;
import com.ruoyi.project.bajiaostar.tBanner.service.ITBannerService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * banner配置Controller
 * 
 * @author 写烧糊
 * @date 2024-07-18
 */
@Controller
@RequestMapping("/nt/banner")
public class WebBannerController extends BaseController
{

    @Autowired
    private ITBannerService tBannerService;


    /**
     * 查询banner配置列表
     */
    @PostMapping("/list")
    @ResponseBody
    public AjaxResult list()
    {
        TBanner tBanner=new TBanner();
        tBanner.setStatus(1L);
        List<TBanner> list = tBannerService.selectTBannerList(tBanner);
        return AjaxResult.success(list);
    }

}
